﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Csla;
namespace EntGuayasSLA.BL.Listas.Criterias
{
   
    [Serializable]
    public class RequisitoCriteriaObligatorio : BusinessBase<RequisitoCriteriaObligatorio>
    {
        #region Business Methods
        public static readonly PropertyInfo<string> CodigoProperty = RegisterProperty<string>(c => c.Codigo);
        public string Codigo
        {
            get { return GetProperty(CodigoProperty); }
            set { SetProperty(CodigoProperty, value); }
        }
        /// <summary>
        /// ec_fas_id OR ec_fas_id OR  mon_id ec_fas_id OR cpm_id
        /// </summary>
        public static readonly PropertyInfo<string> IdAddProperty = RegisterProperty<string>(c => c.IdAdd);
        public string IdAdd
        {
            get { return GetProperty(IdAddProperty); }
            set { SetProperty(IdAddProperty, value); }
        }


        public static readonly PropertyInfo<string> ObligatorioProperty = RegisterProperty<string>(c => c.Obligatorio);
        public string Obligatorio
        {
            get { return GetProperty(ObligatorioProperty); }
            set { SetProperty(ObligatorioProperty, value); }
        }

        #endregion

        #region Factory Methods

        public static RequisitoCriteriaObligatorio NewRequisitoCriteriaObligatorio()
        {
            return DataPortal.Create<RequisitoCriteriaObligatorio>();
        }

        private RequisitoCriteriaObligatorio()
        { /* Require use of factory methods */ }
        #endregion

    }

}
